Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (provider/amazon-bedrock): remove dependence on AWS SDK Bedrock library #4582

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

shaper
Copy link
Contributor

@shaper shaper commented Jan 29, 2025

No description provided.

@shaper shaper changed the title feat (provider/amazon-bedrock): remove dependency on AWS SDK Bedrock … feat (provider/amazon-bedrock): remove dependency on AWS SDK Bedrock library Jan 29, 2025
@shaper shaper force-pushed the shaper/pr/bedrock-2a branch from d77b110 to d7c55ea Compare January 29, 2025 01:18
@shaper shaper force-pushed the shaper/pr/bedrock-2a branch from d7c55ea to 6b38a54 Compare January 29, 2025 01:48
@shaper shaper changed the title feat (provider/amazon-bedrock): remove dependency on AWS SDK Bedrock library feat (provider/amazon-bedrock): remove dependence on AWS SDK Bedrock library Feb 1, 2025
model: bedrock('anthropic.claude-3-haiku-20240307-v1:0'),
prompt: 'Invent a new holiday and describe its traditions.',
model: bedrock(
'arn:aws:bedrock:us-east-2:474668406012:inference-profile/us.anthropic.claude-3-5-sonnet-20240620-v1:0',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to ideally figure out how to make it backwards compatible, or we need to announce breaking changes somehow

import { ZodSchema } from 'zod';

// https://docs.aws.amazon.com/lexv2/latest/dg/event-stream-encoding.html
export const createEventSourceResponseHandler =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would rename to createBedrockResponseHandler or something (include Bedrock)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants